import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false


// 1.导入全局 axios
import axios from 'axios'
// 挂载
Vue.prototype.$axios = axios
// 设置基地址
axios.defaults.baseURL = 'http://big-event-vue-api-t.itheima.net'

// 2.导入element-ui
import ElementUI from 'element-ui'
// 导入 css样式
import 'element-ui/lib/theme-chalk/index.css'
// 挂载
Vue.use(ElementUI)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
